<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<!--axios-->
<div id="app">
    {{info.name}}
    {{info.age}}
    {{info.test}}
</div>
<h1>ffdf3</h1>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
    var vm = new Vue({
        el: "#app",
        data() {
            return {
                //参数形式和json一样
                info: {
                    name: null,
                    age: null,
                    test: null
                }
            }
        },
        mounted() {
            axios.get('../data.json').then(response => (this.info = response.data))
        }
    });
</script>
</body>
</html>